package cn.tuling.bean;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
@Data
@ConfigurationProperties(prefix = "student")
public class Student {
    private String name;
    private Integer age;

    private List<String> hobbies;

    private Map<Integer, String> girlFriends;

    private Address address;
}
